home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / util2 / zipall11.zip / UNZIPALL.BAT < prev    next >
DOS Batch File  |  1993-05-02  |  2KB  |  38 lines

  1. @echo off
  2. REM
  3. REM UNZIPALL.BAT
  4. REM
  5. REM This BAT file can be executed from within any subdirectory to cause PKUNZIP
  6. REM to explode an ALLFILES.ZIP file previously created using the ZIPALL.BAT
  7. REM or ZIPALLT.BAT batch files.  Child subdirectories, if any, will be created
  8. REM as necessary.  Hidden, Readonly, and System attributes will be applied for
  9. REM for those files that were zipped with these attributes.
  10. REM The Archive attribute will be turned off for all files after unzipping.
  11. REM This facilitates identifying changed or added files when RESTZIP.BAT runs. 
  12. REM The MS-DOS ATTRIB command will not reset the Archive bit for Hidden or  
  13. REM System files, however, so Patri-Soft's PATTR.EXE is used for this task.   
  14. REM To avoid the possibility of overwriting an existing file with an older  
  15. REM file being unzipped from ALLFILES.ZIP the -n switch limits the extract to 
  16. REM files that are newer than those on the target directory and files that  
  17. REM don't exist at all on the target directory.
  18. REM This BAT file:
  19. REM   requires the use of the MS-DOS 5.0 (+) DIR command.
  20. REM   requires the use of Patri-Soft's PATTR.EXE (Shareware) -- See ARCOFF.BAT
  21. REM   requires my FEED.EXE (Freeware)
  22. REM
  23. pkunzip allfiles -d -Jhrs -n
  24. if errorlevel 1 goto errexit
  25. prompt $P$G  RZ!
  26. attrib -a *.* /s
  27. dir /aa /b /s | feed arcoff.bat
  28. dir
  29. echo ALLFILES.ZIP has been extracted.
  30. echo Remember to use RESTZIP.BAT to restore the ALLFILES.ZIP file, later. 
  31. echo The change to your prompt is a reminder, to do so.  RESTZIP will reset     
  32. echo the prompt to $P$G.  Edit to your liking in RESTZIP.BAT and UNZIPALL.BAT.
  33. goto exit
  34. :errexit
  35. echo Error in execution of PKUNZIP (via UNZIPALL.BAT).
  36. :exit
  37. echo on
  38.